import axios from 'axios'
// import { Toast } from 'antd-mobile'

// 拦截请求
axios.interceptors.request.use(function (config) {
	// Toast.loading('加载中',0)
	try {
		let spinContainer = document.getElementById("spinContainer")
		spinContainer.style.display = "block";
	} catch (error) {

	}
	return config
})
// 拦截相应
axios.interceptors.response.use(function (config) {
	try {
		let spinContainer = document.getElementById("spinContainer")
		spinContainer.style.display = "none";
	} catch (error) {

	}
	// Toast.hide()
	return config
})